package com.yanqu.road.entity.activity.chefduel.rank;

import java.util.Comparator;

public class CampRankSort implements Comparator<CampRank> {

    @Override
    public int compare(CampRank o1, CampRank o2) {
        if (o2.getValue() != o1.getValue()) {
            return Long.compare(o2.getValue(), o1.getValue());
        }
        return Long.compare(o1.getTime(), o2.getTime());
    }
}
